import './css/css.css'
import './css/scss.scss'
import './css/app.less'

import btnClickHandle from './js/index'
import { square } from './js/math'
import './vue/main'

document.querySelector('button').onclick = event => {
    btnClickHandle()

    const h = event.target.clientHeight
    console.log(square(h))
}

// 在 js/index.js 改变时，告诉 webpack 接受 updated module
// 避免 刷新页面
if (module.hot) {
    module.hot.accept('./js/index.js', function() {
        console.info('【Accepting the updated index module!】');
    })
}
